package com.fang.mmy.items.entity;

/**
 * @ClassName ItemVo
 * @Author kebukeyi
 * @Date 2022/8/9 18:23
 * @Description
 * @Version 1.0.0
 */
public class ItemVo {

    private Long itemId;
    //任务名字 观看视频
    private String name;
    //任务描述 观看15秒即可完成任务
    private String desc;
    //是否完成 true 完成
    private boolean isOk;
    //完成任务的奖励 10积分
    private Integer award;
    // 观看视频地址 www.baidu.com
    private String ruleUrl;
    //观看规则 15s
    private String ruleValue;

    //任务类型：100 签到，101分享任务，102考试学习，103政策通知，104活动任务，105日常任务
    private Integer itemTypeCode;


    public ItemVo(Long itemId, String name, String desc, boolean isOk, Integer award, Integer itemTypeCode, String ruleUrl, String ruleValue) {
        this.itemId = itemId;
        this.name = name;
        this.desc = desc;
        this.isOk = isOk;
        this.itemTypeCode = itemTypeCode;
        this.award = award;
        this.ruleUrl = ruleUrl;
        this.ruleValue = ruleValue;
    }

    public ItemVo(Long itemId, boolean isOk) {
        this.itemId = itemId;
        this.isOk = isOk;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isOk() {
        return isOk;
    }

    public void setOk(boolean ok) {
        isOk = ok;
    }

    public Integer getAward() {
        return award;
    }

    public void setAward(Integer award) {
        this.award = award;
    }

    public String getRuleUrl() {
        return ruleUrl;
    }

    public void setRuleUrl(String ruleUrl) {
        this.ruleUrl = ruleUrl;
    }

    public String getRuleValue() {
        return ruleValue;
    }

    public void setRuleValue(String ruleValue) {
        this.ruleValue = ruleValue;
    }

    @Override
    public String toString() {
        return "ItemVo{" +
                "itemId=" + itemId +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", isOk=" + isOk +
                ", award=" + award +
                ", ruleUrl='" + ruleUrl + '\'' +
                ", ruleValue='" + ruleValue + '\'' +
                '}';
    }
}
